/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.base.dao;

import java.util.Collection;
import java.util.List;

import com.xy.biz.base.domain.po.SupplierPO;
import com.xy.biz.base.domain.query.SupplierQuery;

/**
 * 
 * 
 * @author zgy
 * @date 2021-9-22
 */
public interface SupplierDao {
	
	/**
	 * 保存
	 *
	 * @param supplierPO
	 */
	int saveSupplier(SupplierPO supplierPO);
	
	/**
	 * 保存多个
	 *
	 * @param collection
	 */
	int saveAllSupplier(Collection<SupplierPO> collection);
	
	/**
	 * 更新
	 *
	 * @param supplierPO
	 */
	int updateSupplier(SupplierPO supplierPO);
	
	/**
	 * 删除
	 *
	 * @param supplierId
	 */
	int deleteSupplier(Long supplierId);
	
	/**
	 * 查找一个
	 *
	 * @param supplierId
	 * @return
	 */
	SupplierPO getSupplier(Long supplierId);
	
	/**
	 * 查找多条
	 *
	 * @param collection 
	 * @return
	 */
	List<SupplierPO> listSupplierById(Collection<Long> collection);
	
	/**
	 * 条件查找多条
	 *
	 * @param query 查找条件
	 * @return
	 */
	List<SupplierPO> listSupplier(SupplierQuery query);
	
	/**
	 * 条件统计个数
	 *
	 * @param query 查找条件
	 * @return
	 */
	int countSupplier(SupplierQuery query);
	
}
